package org.kinglone.back.friendlinks.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 友情链接实体类
 * @author yejinlong
 * 2017年8月2日
 * @version 1.0
 */
@Entity 
@Table(name="friendlinks")
public class Friendlinks implements Serializable{

	private static final long serialVersionUID = 1L;	
	@Id @GenericGenerator(name = "generator", strategy = "uuid.hex")
	@GeneratedValue(generator = "generator")
	@Column(name="sysid", unique = true, nullable = false, length = 32)
	private String sysid;
	
	//url网址
	@Column(name="weburl",nullable = false,length=128)
	private String weburl;
	
	//友情链接昵称
	@Column(name="nickname",nullable = false,length=128)
	private String nickname;
	
	//是否显示  Y:显示  N:不显示
	@Column(name = "isDisplay", nullable = false, length = 1)
	private String isDisplay;
	
	//创建时间
	@Column(name="createtime",nullable = false,length=20)
	private String createTime;

	//联系方式
	@Column(name="phone")
	private String phone;

	//备注
	@Column(name = "remark")
	private String remark;

	public Friendlinks() {		
	}

	public Friendlinks(String weburl, String nickname, String isDisplay, String createTime, String phone, String remark) {
		this.weburl = weburl;
		this.nickname = nickname;
		this.isDisplay = isDisplay;
		this.createTime = createTime;
		this.phone = phone;
		this.remark = remark;
	}

	public String getSysid() {
		return sysid;
	}

	public void setSysid(String sysid) {
		this.sysid = sysid;
	}

	public String getWeburl() {
		return weburl;
	}

	public void setWeburl(String weburl) {
		this.weburl = weburl;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getIsDisplay() {
		return isDisplay;
	}

	public void setIsDisplay(String isDisplay) {
		this.isDisplay = isDisplay;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
}
